/**
 * 商品
 */
interface Product {
  id: string;
  name: string;
  price: string;
  cost_price: string;
  status: string;
  category_id: string;
  description: string;
  min_stock: string;
  spec: string;
}


interface PageResult<T> {
  page: number;
  total: number;
  list: T[]
}

/**
 * 商品类别
 */
interface CategoryItem {
  id: string;
  name: string;
}


export type { Product, PageResult, CategoryItem };